import {
	apiapi
} from "./request.js"

export const getList = (data) => apiapi(
	'apim.php?_=stat::index_stat',
	'POST',
	data,
);



// 发货统计
export const getFaHuoChart = (data) => apiapi(
	'/apim.php?_=Stat::stat&code=chukubangdan&x_val=day&y_val=date_format(add_time,%27%Y-%m-%d%27)%20day,sum(jkvg7a3n0o3ii)%20total',
	'POST',
	data,
);

// 采购统计
export const getCaiGouChart = (data) => apiapi(
	'/apim.php?_=Stat::stat&code=rukubangdan&x_val=day&y_val=date_format(add_time,%27%Y-%m-%d%27)%20day,sum(jkvg7a3n0o3ii)%20total',
	'POST',
	data,
);

// 生产统计
export const getShengChanChart = (data) => apiapi(
	'/apim.php?_=Stat::stat&code=shengchanjilu&x_val=day&y_val=date_format(add_time,%27%Y-%m-%d%27)%20day,sum(bcd1mbt40vxe4)%20total',
	'POST',
	data,
);
